﻿<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
      <title>AProto 类
 | Fantasy.Net API Reference </title>
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <meta name="title" content="AProto 类
 | Fantasy.Net API Reference ">
      
      <link rel="icon" href="../favicon.ico">
      <link rel="stylesheet" href="../public/docfx.min.css">
      <link rel="stylesheet" href="../public/main.css">
      <meta name="docfx:navrel" content="../toc.html">
      <meta name="docfx:tocrel" content="toc.html">
      
      <meta name="docfx:rel" content="../">
      
      
      
  </head>

  <script type="module">
    import options from './../public/main.js'
    import { init } from './../public/docfx.min.js'
    init(options)
  </script>

  <script>
    const theme = localStorage.getItem('theme') || 'auto'
    document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme)
  </script>

  <body class="tex2jax_ignore" data-layout="" data-yaml-mime="ManagedReference">
    <header class="bg-body border-bottom">
      <nav id="autocollapse" class="navbar navbar-expand-md" role="navigation">
        <div class="container-xxl flex-nowrap">
          <a class="navbar-brand" href="../index.html">
            <img id="logo" class="svg" src="../logo.svg" alt="Fantasy.Net">
            Fantasy.Net
          </a>
          <button class="btn btn-lg d-md-none border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navpanel" aria-controls="navpanel" aria-expanded="false" aria-label="Toggle navigation">
            <i class="bi bi-three-dots"></i>
          </button>
          <div class="collapse navbar-collapse" id="navpanel">
            <div id="navbar">
              <form class="search" role="search" id="search">
                <i class="bi bi-search"></i>
                <input class="form-control" id="search-query" type="search" disabled="" placeholder="搜索" autocomplete="off" aria-label="Search">
              </form>
            </div>
          </div>
        </div>
      </nav>
    </header>

    <main class="container-xxl">
      <div class="toc-offcanvas">
        <div class="offcanvas-md offcanvas-start" tabindex="-1" id="tocOffcanvas" aria-labelledby="tocOffcanvasLabel">
          <div class="offcanvas-header">
            <h5 class="offcanvas-title" id="tocOffcanvasLabel">Table of Contents</h5>
            <button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#tocOffcanvas" aria-label="Close"></button>
          </div>
          <div class="offcanvas-body">
            <nav class="toc" id="toc"></nav>
          </div>
        </div>
      </div>

      <div class="content">
        <div class="actionbar">
          <button class="btn btn-lg border-0 d-md-none" style="margin-top: -.65em; margin-left: -.8em" type="button" data-bs-toggle="offcanvas" data-bs-target="#tocOffcanvas" aria-controls="tocOffcanvas" aria-expanded="false" aria-label="Show table of contents">
            <i class="bi bi-list"></i>
          </button>

          <nav id="breadcrumb"></nav>
        </div>

        <article data-uid="Fantasy.AProto">



  <h1 id="Fantasy_AProto" data-uid="Fantasy.AProto" class="text-break">
    AProto 类
  
  </h1>

  <div class="facts text-secondary">
    <dl><dt>命名空间</dt><dd><a class="xref" href="Fantasy.html">Fantasy</a></dd></dl>
  <dl><dt>程序集</dt><dd>Fantasy.Net.dll</dd></dl>
  </div>

  <div class="markdown summary"><p>提供 ProtoBuf 序列化和反序列化支持的抽象基类。</p>
</div>
  <div class="markdown conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class AProto</code></pre>
  </div>




  <dl class="typelist inheritance">
    <dt>继承</dt>
    <dd>
      <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
      <div><span class="xref">AProto</span></div>
    </dd>
  </dl>


  <dl class="typelist derived">
    <dt>Derived</dt>
    <dd>
      <div><a class="xref" href="Fantasy.I_AddressableAdd_Request.html">I_AddressableAdd_Request</a></div>
      <div><a class="xref" href="Fantasy.I_AddressableAdd_Response.html">I_AddressableAdd_Response</a></div>
      <div><a class="xref" href="Fantasy.I_AddressableGet_Request.html">I_AddressableGet_Request</a></div>
      <div><a class="xref" href="Fantasy.I_AddressableGet_Response.html">I_AddressableGet_Response</a></div>
      <div><a class="xref" href="Fantasy.I_AddressableLock_Request.html">I_AddressableLock_Request</a></div>
      <div><a class="xref" href="Fantasy.I_AddressableLock_Response.html">I_AddressableLock_Response</a></div>
      <div><a class="xref" href="Fantasy.I_AddressableRemove_Request.html">I_AddressableRemove_Request</a></div>
      <div><a class="xref" href="Fantasy.I_AddressableRemove_Response.html">I_AddressableRemove_Response</a></div>
      <div><a class="xref" href="Fantasy.I_AddressableUnLock_Request.html">I_AddressableUnLock_Request</a></div>
      <div><a class="xref" href="Fantasy.I_AddressableUnLock_Response.html">I_AddressableUnLock_Response</a></div>
      <div><a class="xref" href="Fantasy.PingRequest.html">PingRequest</a></div>
      <div><a class="xref" href="Fantasy.PingResponse.html">PingResponse</a></div>
      <div><a class="xref" href="Fantasy.Response.html">Response</a></div>
      <div><a class="xref" href="Fantasy.RouteResponse.html">RouteResponse</a></div>
    </dd>
  </dl>

  <dl class="typelist derived">
    <dt>继承成员</dt>
    <dd>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gettype">object.GetType()</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone">object.MemberwiseClone()</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.tostring">object.ToString()</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)">object.Equals(object)</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)">object.Equals(object, object)</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.referenceequals">object.ReferenceEquals(object, object)</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gethashcode">object.GetHashCode()</a>
    </div>
  </dd></dl>

  <dl class="typelist extensionMethods">
    <dt>扩展方法</dt>
    <dd>
  <div>
      <a class="xref" href="Fantasy.Helper.JsonHelper.html#Fantasy_Helper_JsonHelper_ToJson__1___0_">JsonHelper.ToJson&lt;T&gt;(T)</a>
  </div>
  </dd></dl>





  <h2 class="section" id="constructors">构造函数
</h2>


  <a id="Fantasy_AProto__ctor_" data-uid="Fantasy.AProto.#ctor*"></a>

  <h3 id="Fantasy_AProto__ctor" data-uid="Fantasy.AProto.#ctor">
  AProto()
  
  </h3>

  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">protected AProto()</code></pre>
  </div>













  <h2 class="section" id="methods">方法
</h2>


  <a id="Fantasy_AProto_AfterDeserialization_" data-uid="Fantasy.AProto.AfterDeserialization*"></a>

  <h3 id="Fantasy_AProto_AfterDeserialization" data-uid="Fantasy.AProto.AfterDeserialization">
  AfterDeserialization()
  
  </h3>

  <div class="markdown level1 summary"><p>在反序列化完成后执行的操作，可以在子类中重写以完成初始化。</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public virtual void AfterDeserialization()</code></pre>
  </div>













  <a id="Fantasy_AProto_EndInit_" data-uid="Fantasy.AProto.EndInit*"></a>

  <h3 id="Fantasy_AProto_EndInit" data-uid="Fantasy.AProto.EndInit">
  EndInit()
  
  </h3>

  <div class="markdown level1 summary"><p>在 <a class="xref" href="Fantasy.AProto.html#Fantasy_AProto_AfterDeserialization">AfterDeserialization()</a> 中调用，用于完成子类的初始化操作。</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">protected virtual void EndInit()</code></pre>
  </div>














</article>


        
      </div>

      <div class="affix">
        <nav id="affix"></nav>
      </div>
    </main>

    <div class="container-xxl search-results" id="search-results"></div>

    <footer class="border-top">
      <div class="container-xxl">
        <div class="flex-fill">
          <span>Made with <a href="https://dotnet.github.io/docfx">docfx</a></span>
        </div>
      </div>
    </footer>
  </body>
</html>